package com.zkthink.ceres.member.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 实体类
 * 更改手机
 * </p>
 *
 * @author kellen
 * @since 2020-07-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MemberUpdatePhoneDTO", description = "更改手机")
public class MemberUpdatePhoneDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会员id")
    @NotNull
    private Long mid;

    @ApiModelProperty(value = "电话", notes = "电话")
    @NotBlank(message = "电话必填项")
    private String phone;

    @ApiModelProperty(value = "验证码", notes = "必填项")
    private String code;

}
